import React from 'react';
import { Node } from './Node';

export const { Provider, Consumer } = React.createContext();

export default class App extends React.Component {
  render() {
    return (
      <Provider value={'pink'}>
        <div style={{ border: '1px solid red', padding: 12 }}>
          <h2>我是App组件</h2>
          <Node />
        </div>
      </Provider>
    );
  }
}
